package com.etc.service.impl;

import com.etc.entity.Role;
import com.etc.entity.User;
import com.etc.mapper.RoleMapper;
import com.etc.mapper.UserMapper;
import com.etc.service.RoleService;
import com.etc.service.UserService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("roles")
public class RoleServiceImpl implements RoleService {
@Autowired
    RoleMapper roleMapper;

    @Override
    public Role getrole(String roleone) {
        return roleMapper.getrolebyname(roleone);
    }
}
